namespace FytSoa.Quartz
{
    public class SendMailEntity
    {
        /// <summary>
        /// 邮件标题
        /// </summary>
        public string Title { get; set; }
        
        /// <summary>
        /// 邮件内容
        /// </summary>
        public string Content { get; set; }
        
        /// <summary>
        /// 邮件信息
        /// </summary>
        public MailEntity MailInfo { get; set; } = null;
    }
    
    /// <summary>
    /// 邮箱服务内容
    /// </summary>
    public class MailEntity
    {
        /// <summary>
        /// 发件邮箱
        /// </summary>
        public string MailFrom { get; set; }
        
        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string MailPwd { get; set; }
        
        /// <summary>
        /// 发件服务器
        /// </summary>
        public string SmtpServer { get; set; }
        
        /// <summary>
        /// SMTP服务器端口
        /// </summary>
        public int SmtpPort { get; set; }

        /// <summary>
        /// 使用SSL
        /// </summary>
        public bool EnableSsl { get; set; } = true;
        
        /// <summary>
        /// 收件邮箱
        /// </summary>
        public string MailTo { get; set; }
    }
}